home *** CD-ROM | disk | FTP | other *** search
/ The Amiga Classic Collection / The Amiga Classic Collection - Disc 1.iso / DOpus / InstallOpus < prev    next >
Text File  |  2001-11-28  |  20KB  |  747 lines

  1. ;*************************************************************************
  2. ;    Title:
  3. ;        Install-Opus
  4. ;*************************************************************************
  5. ;    Description:
  6. ;        The Commodore Installer Script for Opus 4.1 Software
  7. ;*************************************************************************
  8. ;    Author:
  9. ;        Eddie Churchill, c/o INOVAtronics, Inc.
  10. ;*************************************************************************
  11. ;    Still to do:
  12. ;*************************************************************************
  13. ;    History:
  14. ;        05-Jun-93
  15. ;            Simply clean up
  16. ;        10-Feb-93
  17. ;            Removed nasty words, bad eddie
  18. ;        25-Jan-93
  19. ;            Removed the "Run >Nil: <Nil:" from the user-startup
  20. ;        08-Jan-93
  21. ;            Added some additional removal code for Sys:ConfigOpus & ConfigOpus
  22. ;        08-Dec-92
  23. ;            Rewritting script for DirectoryOpus
  24. ;*************************************************************************
  25.  
  26. ; BEWARE OF ALTSPACES IN TEXT Directory Opus
  27.  
  28. ;******************************************************
  29. ;***** SET UP OUR VARIABLES AND OTHER SUCH STUFF ******
  30. ;******************************************************
  31.  
  32. ; some useful variables
  33.     (set true 1)
  34.     (set false 0)
  35.     (set on true)
  36.     (set off false)
  37.     (set yes true)
  38.     (set no false)
  39.     (set yep yes)
  40.     (set nope no)
  41.     (set is_a_file 1)
  42.     (set is_a_dir 2)
  43.     (set quote "\"")
  44.     (set newline "\n")
  45.     (set nothing "")
  46.     (set testing nope)
  47. ;    (set testing yep) ;<- uncomment this for testing mode
  48.     (set os2 (< 2293760 (getversion "exec.library" (resident)))) ; true if under 2.0
  49.  
  50. ; set up our delete options
  51.     (delopts "AskUser" "OkNoDelete" "Force")
  52.  
  53. ; some useful procedures
  54.     ; change userlevel to expert
  55.     (procedure expert_level
  56.         (
  57.             (user 2)
  58.         )
  59.     )
  60.     
  61.     ; reset userlevel back to default
  62.     (procedure default_level
  63.         (
  64.             (user default-level)
  65.         )
  66.     )
  67.     
  68.     ; store off userlevel
  69.     (procedure save_default_level
  70.         (
  71.             (set default-level @user-level)
  72.         )
  73.     )
  74.  
  75. ; some overused strings
  76.     (set omp (cat "One moment please..." newline))
  77.  
  78. ; a general purpose global error trapper
  79.     (onerror
  80.         (makeassign "DOpus_Master" (safe))
  81.     )
  82.  
  83.     
  84. ; introduce ourselfs to the viewers
  85.     (welcome "Welcome to the Directory Opus v4.1 installer.  This installer uses "
  86.         "the Commodore Amiga Installer.  All of our future new products "
  87.         "will be using this installer and we would love to get any feedback "
  88.         "that might help in improving the installation procedure." newline
  89.     )
  90.  
  91. ; first reset the user level so that the novice can see whats going on
  92.     (save_default_level)
  93.     (expert_level)
  94.     
  95. ; what type of install is this going to be?
  96.     (if
  97.         (askbool
  98.             (prompt "How do you want to install?")
  99.             (help @askbool-help)
  100.             (choices "To your HardDrive" "To your boot floppy")
  101.         )
  102.         (
  103.             ; hard drive part
  104.  
  105.             ;****************************************
  106.             ;***** FIGURE OUT WHERE STUFF GOES ******
  107.             ;****************************************
  108.             
  109.             ; now figure out the initial defaults for a bunch of things
  110.                 ; @default-dest is already set for us
  111.                 (set DOpus_Dir (getassign "DOpus"))
  112.             
  113.             ; see if we are doing an update
  114.                 (if (<> DOpus_Dir nothing)
  115.                     (if (askbool
  116.                             (prompt "There seems to be a Directory Opus already installed in"
  117.                                 " your drawer named " quote DOpus_Dir quote ".  "
  118.                                 "Do you want the install Directory Opus v4.1 over it?")
  119.                             (help
  120.                                 "The installer has determined that you may already have a "
  121.                                 "copy of Directory Opus installed on your system. If this is wrong or "
  122.                                 "you want the update installed elsewhere, select NO as an "
  123.                                 "answer. Otherwise, select YES."
  124.                             )
  125.                             (default 1)
  126.                         )
  127.                         ( ; the then clause
  128.                             (set is_update true) ; hey, the user said yes
  129.                         )
  130.                         ( ; the else clause
  131.                             (set is_update false) ; hey, the user said nope
  132.                             (set DOpus_Dir
  133.                                 (askdir
  134.                                     (prompt "Where would you like Opus installed?")
  135.                                     (help @askdir-help)
  136.                                     (default @default-dest)
  137.                                     (newpath)
  138.                                 )
  139.                             )
  140.                         )
  141.                     )
  142.                 )
  143.             
  144.             ; if DOpus_Dir is still nothing then where do they want it?
  145.                 (if (= DOpus_Dir nothing)
  146.                     (set DOpus_Dir
  147.                         (askdir
  148.                             (prompt "Where would you like Opus installed?")
  149.                             (help @askdir-help)
  150.                             (default @default-dest)
  151.                             (newpath)
  152.                         )
  153.                     )
  154.                 )
  155.             
  156.             ; before we go on lets reset the user's level back to what it was
  157.                 (default_level)
  158.             
  159.             ; verify that the Opus directory exists
  160.                 (if (<> (exists DOpus_Dir) is_a_dir)
  161.                     (makedir DOpus_Dir
  162.                         (prompt
  163.                             "The directory you have selected for Directory Opus v4.1 does not "
  164.                             "seem to exist.  Do you want us to create it for you?"
  165.                         )
  166.                         (help @makedir-help)
  167.                         (infos)
  168.                         (confirm)
  169.                     )
  170.                 )
  171.             
  172.             
  173.             ;***********************************
  174.             ;***** GET FIRST DISK IN HERE ******
  175.             ;***********************************
  176.             
  177.             ; ask for the first disk, it should be here but lets check anyway
  178.                 (askdisk
  179.                     (prompt    "Please insert the disk labeled \"Opus Program\".")
  180.                     (help    "The Directory Opus v4.1 program disk contains the main Directory Opus program and support files")
  181.                     (dest  "DOpus")
  182.                     (newname "DOpus_Master")
  183.                 )
  184.             
  185.             ; tell the user of our progress
  186.                 (complete 10)
  187.             
  188.             
  189.             ; clean up after Directory Opus v3.41
  190.             
  191.                 ; Delete S:DirectoryOpus.HLP
  192.                 (set temp_file "S:DirectoryOpus.HLP")
  193.                 (if (= (exists temp_file) is_a_file)
  194.                     (delete temp_file)
  195.                 )
  196.                 
  197.                 ; tell the user of our progress
  198.                 (complete 15)
  199.     
  200.                 ; Delete C:DOpusRT
  201.                 (set temp_file "C:DOpusRT")
  202.                 (if (= (exists temp_file) is_a_file)
  203.                     (delete temp_file)
  204.                 )
  205.                 
  206.                 ; tell the user of our progress
  207.                 (complete 20)
  208.         
  209.                 ; Delete C:ConfigOpus
  210.                 (set temp_file "C:ConfigOpus")
  211.                 (if (= (exists temp_file) is_a_file)
  212.                     (delete temp_file)
  213.                 )
  214.         
  215.                 ; tell the user of our progress
  216.                 (complete 22)
  217.         
  218.                 ; Delete Sys:ConfigOpus
  219.                 (set temp_file "Sys:ConfigOpus")
  220.                 (if (= (exists temp_file) is_a_file)
  221.                     (delete temp_file)
  222.                 )
  223.         
  224.                 ; tell the user of our progress
  225.                 (complete 23)
  226.         
  227.                 ; Delete ConfigOpus
  228.                 (set temp_file "ConfigOpus")
  229.                 (if (= (exists temp_file) is_a_file)
  230.                     (delete temp_file)
  231.                 )
  232.         
  233.                 ; tell the user of our progress
  234.                 (complete 25)
  235.                 
  236.                 ; Delete Libs:Dopus.Library
  237.                 (set temp_file "Libs:Dopus.Library")
  238.                 (if (= (exists temp_file) is_a_file)
  239.                     (
  240.                         (set libraryexisted yes)
  241.                         (delete temp_file)
  242.                     )
  243.                 )
  244.                 
  245.                 (set temp_file (tackon DOpus_Dir "Libs/DOpus.Library"))
  246.                 (if (= (exists temp_file) is_a_file)
  247.                     (
  248.                         (set libraryexisted yes)
  249.                     )
  250.                 )
  251.                         
  252.             ;****************************************
  253.             ;***** COPY OVER FIRST DISK'S STUFF *****
  254.             ;****************************************
  255.             
  256.             ; first copy over the stuff
  257.                 (working omp "Scanning Directory Opus v4.1's disk for files.")
  258.                 
  259.                 (set DOpus_Dir
  260.                     (copyfiles
  261.                         (prompt "Copying files needed by Opus")
  262.                         (help "This will copy the program and support files needed by Directory Opus v4.1"
  263.                             newline
  264.                             @copyfiles-help
  265.                         )
  266.                         (source "DOpus_Master:")
  267.                         (dest DOpus_dir)
  268.                         (pattern "(C|Libs|Modules|S|DirectoryOpus|ReadMe.Doc)")
  269.                         (infos)
  270.                         (confirm)
  271.                     )
  272.                 )
  273.             
  274.             
  275.             ; tell the user of our progress
  276.                 (complete 60)
  277.             
  278.             ; verify that directory opus made it over there
  279.                 (if (= (exists (tackon dopus_dir "DirectoryOpus")) is_a_file)
  280.                     (set dopus_exists yes)
  281.                     (set dopus_exists no)
  282.                 )
  283.             
  284.             
  285.             ; tell the user of our progress
  286.                 (complete 65)
  287.             
  288.             ; only the next stuff if dopus got copied
  289.                 (if (= dopus_exists yes)
  290.                     (
  291.                     
  292.                     ; reset the user level so that the novice can see whats going on
  293.                         (save_default_level)
  294.                         (expert_level)
  295.                     
  296.                     
  297.                     ; ask the user if they want directory opus auto-started when they boot
  298.                         (set startup_mode (askchoice
  299.                                 (prompt "What do you want to do when your machine starts up?")
  300.                                 (help
  301.                                     "The installer can adjust your startup to include the commands needed "
  302.                                     "to automatically startup Directory Opus when your machine starts up."
  303.                                     newline
  304.                                     @askchoice-help
  305.                                 )
  306.                                 (choices "Do not auto-start Directory Opus" "Startup Directory Opus" "Startup Directory Opus Iconified")
  307.                                 (default 0)
  308.                             )
  309.                         )
  310.                         
  311.                         
  312.                     ; tell the user of our progress
  313.                         (complete 90)
  314.                         
  315.                     ; now figure out the addition to the user-startup
  316.                         (set user_script
  317.                             (cat "ASSIGN DOpus: " quote DOpus_dir quote newline)
  318.                         )
  319.                         
  320.                         ; startup directory opus
  321.                         (if (= startup_mode 1)
  322.                             (set user_script
  323.                                 (cat user_script
  324.                                     "Stack 20480" newline
  325.                                     "DOpus:DirectoryOpus" newline
  326.                                 )
  327.                             )
  328.                         )
  329.                         
  330.                         ; startup directory opus in ICONIFIED mode
  331.                         (if (= startup_mode 2)
  332.                             (set user_script
  333.                                 (cat user_script
  334.                                     "Stack 20480" newline
  335.                                     "DOpus:DirectoryOpus -i" newline
  336.                                 )
  337.                             )
  338.                         )
  339.                     
  340.                             
  341.                     ; modify S:User-Startup
  342.                         (working omp "Updating S:User-Startup.")
  343.                     
  344.                         (startup "DOpus"
  345.                             (prompt
  346.                                 "These instructions need to be added to the \"S:User-Startup\" "
  347.                                 "so that your system will be properly configured to use Directory Opus v4.1."
  348.                                 newline
  349.                                 newline
  350.                                 user_script
  351.                             )
  352.                             (help @startup-help)
  353.                             (command user_script)
  354.                         )
  355.                     )
  356.                 )
  357.                 
  358.             ; tell the user of our progress
  359.                 (complete 100)
  360.             
  361.             
  362.             ;*****************************
  363.             ;***** WE BE ALMOST DONE *****
  364.             ;*****************************
  365.             
  366.             ; make sure that default-dir is pointing to the right place
  367.                 (set @default-dest DOpus_Dir)
  368.         )
  369.         (
  370.             ; onto the floppy version
  371.             ;****************************************
  372.             ;***** FIGURE OUT WHERE STUFF GOES ******
  373.             ;****************************************
  374.             
  375.             ; where to go?
  376.                 (set @default-dest "Sys:")
  377.             
  378.             ; get the free space from the SYS: diskette
  379.                 (set sys_free (getdiskspace "Sys:"))
  380.                 (set sys_free (/ sys_free 1024))
  381.                 (set space_used 0)
  382.             
  383.             ; now figure out what the user wants to copy?
  384.                 (set first_choice
  385.                     (askoptions
  386.                         (prompt "Your boot diskette has " sys_free " kilobytes free." newline "What do you want to install?")
  387.                         (help "Becareful not to select too much stuff.")
  388.                         (choices
  389.                             "DirectoryOpus            (275k)"
  390.                             "Important Stuff          (103k)"
  391.                             "  DOpusRT                  (6k)"
  392.                             "  DOpus.Library           (65k)"
  393.                             "  DirectoryOpus Help      (32k)"
  394.                         )
  395.                         (default 3)
  396.                     )
  397.                 )
  398.             
  399.             ; figure out how much space will used
  400.                 ; opus is to be copied
  401.                 (if (bitand first_choice 1)
  402.                     (set sys_free (- sys_free 260))
  403.                 )
  404.                 
  405.                 ; important stuff to be copied
  406.                 (if (bitand first_choice 2)
  407.                     (set sys_free (- sys_free 103))
  408.                     (
  409.                         ; else is DOpusRT to be copied?
  410.                         (if (bitand first_choice 4)
  411.                             (set sys_free (- sys_free 6))
  412.                         )
  413.                         ; Dopus.library to be copied?
  414.                         (if (bitand first_choice 8)
  415.                             (set sys_free (- sys_free 65))
  416.                         )
  417.                         ; DOpus Helpfiles to be copied?
  418.                         (if (bitand first_choice 16)
  419.                             (set sys_free (- sys_free 32))
  420.                         )
  421.                     )
  422.                 )
  423.                 
  424.             
  425.             ; if there is room then ask about these items
  426.                 (if (> sys_free 0)
  427.                     (set second_choice
  428.                         (askoptions
  429.                             (prompt "Your boot diskette has " sys_free " kilobytes free." newline "What do you want to install?")
  430.                             (help "Becareful not to select too much stuff.")
  431.                             (choices
  432.                                 "Extra Libraries           (45k)"
  433.                                 "  PowerPacker.Library     (10k)"
  434.                                 "  InovaMusic.Library      (35k)"
  435.                                 "All Modules              (225k)"
  436.                                 "  ConfigOpus             (150k)"
  437.                                 "  DiskUtilities           (30k)"
  438.                                 "  PrintUtilities          (30k)"
  439.                                 "  IconViewer              (15k)"
  440.                             )
  441.                             (default 9)
  442.                         )
  443.                     )
  444.                     (set second_choice 0)
  445.                 )
  446.             
  447.             ; before we go on lets reset the user's level back to what it was
  448.                 (default_level)
  449.             
  450.             
  451.             ;***********************************
  452.             ;***** GET FIRST DISK IN HERE ******
  453.             ;***********************************
  454.             
  455.             ; ask for the first disk, it should be here but lets check anyway
  456.                 (askdisk
  457.                     (prompt    "Please insert the disk labeled \"Opus Program\".")
  458.                     (help    "The Directory Opus v4.1 program disk contains the main Directory Opus program and support files")
  459.                     (dest  "DOpus")
  460.                     (newname "DOpus_Master")
  461.                 )
  462.             
  463.             ; tell the user of our progress
  464.                 (complete 5)
  465.             
  466.             ; clean up after Directory Opus v3.41
  467.             ; Delete S:DirectoryOpus.HLP
  468.                 (set temp_file "S:DirectoryOpus.HLP")
  469.                 (if (= (exists temp_file) is_a_file)
  470.                     (delete temp_file)
  471.                 )
  472.                 
  473.             ; tell the user of our progress
  474.                 (complete 10)
  475.             
  476.             ; Delete C:DOpusRT
  477.                 (set temp_file "C:DOpusRT")
  478.                 (if (= (exists temp_file) is_a_file)
  479.                     (delete temp_file)
  480.                 )
  481.                 
  482.             ; tell the user of our progress
  483.                 (complete 15)
  484.             
  485.             ; Delete C:ConfigOpus
  486.                 (set temp_file "C:ConfigOpus")
  487.                 (if (= (exists temp_file) is_a_file)
  488.                     (delete temp_file)
  489.                 )
  490.                 
  491.             ; tell the user of our progress
  492.                 (complete 20)
  493.             
  494.                 ; Delete Libs:Dopus.Library
  495.                 (set temp_file "Libs:Dopus.Library")
  496.                 (if (= (exists temp_file) is_a_file)
  497.                     (
  498.                         (set libraryexisted yes)
  499.                         (delete temp_file)
  500.                     )
  501.                 )
  502.                         
  503.                 
  504.                 (set temp_file (tackon DOpus_Dir "Libs/DOpus.Library"))
  505.                 (if (= (exists temp_file) is_a_file)
  506.                     (
  507.                         (set libraryexisted yes)
  508.                     )
  509.                 )
  510.                 
  511.             ; now copy over directory opus if requested
  512.                 (if (bitand first_choice 1)
  513.                     (copyfiles
  514.                         (prompt "Copying Directory Opus v4.1 to your bootfloppy")
  515.                         (help "This will copy Directory Opus v4.1 to your boot diskette."
  516.                             newline
  517.                             @copyfiles-help
  518.                         )
  519.                         (source "DOpus_Master:")
  520.                         (dest @default-dest)
  521.                         (choices "DirectoryOpus")
  522.                         (infos)
  523.                         (confirm)
  524.                     )
  525.                 )
  526.             
  527.             ; tell the user of our progress
  528.                 (complete 30)
  529.             
  530.             ; did they select all important stuff?
  531.                 (if (bitand first_choice 2)
  532.                     (set first_choice 28)
  533.                 )
  534.                 
  535.             ; see if we are supposed to copy DOpusRT
  536.                 (if (bitand first_choice 4)
  537.                     (copyfiles
  538.                         (prompt "Copying the DOPusRT program to your bootfloppy")
  539.                         (help "This program lets Directory Opus v4.1 launch other applications."
  540.                             newline
  541.                             @copyfiles-help
  542.                         )
  543.                         (source "DOpus_Master:C")
  544.                         (dest (tackon @default-dest "C"))
  545.                         (choices "DOpusRT")
  546.                         (confirm)
  547.                     )
  548.                 )
  549.             
  550.             ; tell the user of our progress
  551.                 (complete 35)
  552.             
  553.             ; see if we are supposed to copy DOpus.Library
  554.                 (if (bitand first_choice 8)
  555.                     (copylib
  556.                         (prompt "Copying the DOpus.Library to your bootfloppy")
  557.                         (help "This is a support library for Directory Opus v4.1."
  558.                             newline
  559.                             @copyfiles-help
  560.                         )
  561.                         (source "DOpus_Master:Libs/DOpus.Library")
  562.                         (dest (tackon @default-dest "Libs"))
  563.                         (confirm)
  564.                     )
  565.                 )
  566.             
  567.             ; tell the user of our progress
  568.                 (complete 45)
  569.             
  570.             ; see if we are supposed to copy DirectoryOpus.HLP
  571.                 (if (bitand first_choice 16)
  572.                     (copyfiles
  573.                         (prompt "Copying Directory Opus v4.1's help files to your bootfloppy")
  574.                         (help "This file contains help information about Directory Opus v4.1."
  575.                             newline
  576.                             @copyfiles-help
  577.                         )
  578.                         (source "DOpus_Master:S")
  579.                         (dest (tackon @default-dest "S"))
  580.                         (choices "DirectoryOpus.HLP")
  581.                         (confirm)
  582.                     )
  583.                 )
  584.             
  585.             ; tell the user of our progress
  586.                 (complete 50)
  587.             
  588.             ; break up the second_choice
  589.                 (set xlibs_choice (bitand second_choice 7))
  590.                 (set mods_choice (bitand second_choice 248))
  591.                 
  592.             ; Is all extralibs selected?
  593.                 (if (bitand xlibs_choice 1)
  594.                     (set xlibs_choice 6)
  595.                 )
  596.                 
  597.             ; see if we are supposed to copy PowerPacker.library
  598.                 (if (bitand xlibs_choice 2)
  599.                     (copylib
  600.                         (prompt "Copying the PowerPacker.Library to your bootfloppy")
  601.                         (help "This is a support library for Directory Opus v4.1."
  602.                             newline
  603.                             @copyfiles-help
  604.                         )
  605.                         (source "DOpus_Master:Libs/PowerPacker.Library")
  606.                         (dest (tackon @default-dest "Libs"))
  607.                         (confirm)
  608.                     )
  609.                 )
  610.             
  611.             ; tell the user of our progress
  612.                 (complete 55)
  613.             
  614.             ; see if we are supposed to copy InovaMusic.library
  615.                 (if (bitand xlibs_choice 4)
  616.                     (copylib
  617.                         (prompt "Copying the InovaMusic.Library to your bootfloppy")
  618.                         (help "This is a support library for Directory Opus v4.1."
  619.                             newline
  620.                             @copyfiles-help
  621.                         )
  622.                         (source "DOpus_Master:Libs/InovaMusic.Library")
  623.                         (dest (tackon @default-dest "Libs"))
  624.                         (confirm)
  625.                     )
  626.                 )
  627.             
  628.             ; tell the user of our progress
  629.                 (complete 60)
  630.             
  631.             ; did they select all modules
  632.                 (if (bitand mods_choice 8)
  633.                     (set mods_choice 240)
  634.                 )
  635.                 
  636.             ; see if we are supposed to copy ConfigOpus
  637.                 (if (bitand mods_choice 16)
  638.                     (
  639.                         ; first copy the program
  640.                         (copyfiles
  641.                             (prompt "Copying the ConfigOpus program to your bootfloppy")
  642.                             (help "This program lets you configure Directory Opus v4.1."
  643.                                 newline
  644.                                 @copyfiles-help
  645.                             )
  646.                             (source "DOpus_Master:Modules")
  647.                             (dest @default-dest)
  648.                             (choices "ConfigOpus")
  649.                             (infos)
  650.                             (confirm)
  651.                         )
  652.                         
  653.                         ; tell the user of our progress
  654.                         (complete 65)
  655.             
  656.                         ; second ask about the help file
  657.                         (copyfiles
  658.                             (prompt "Do you want to copy the ConfigOpus help file to your bootfloppy?")
  659.                             (help "This is the help file for ConfigOpus."
  660.                                 newline
  661.                                 @copyfiles-help
  662.                             )
  663.                             (source "DOpus_Master:S")
  664.                             (dest (tackon @default-dest "S"))
  665.                             (choices "ConfigOpus.HLP")
  666.                             (confirm)
  667.                         )
  668.                     )
  669.                 )
  670.             
  671.             ; tell the user of our progress
  672.                 (complete 70)
  673.             
  674.             ; see if we are supposed to copy Disk utilities
  675.                 (if (bitand mods_choice 32)
  676.                     ; first copy the program
  677.                     (copyfiles
  678.                         (prompt "Copying the Disk Utilities to your bootfloppy")
  679.                         (help "This program lets Directory Opus v4.1 manipulate diskettes."
  680.                             newline
  681.                             @copyfiles-help
  682.                         )
  683.                         (source "DOpus_Master:Modules")
  684.                         (dest (tackon @default-dest "C"))
  685.                         (choices "DOpus_Disk")
  686.                         (confirm)
  687.                     )
  688.                 )
  689.             
  690.             ; tell the user of our progress
  691.                 (complete 80)
  692.             
  693.             ; see if we are supposed to copy print utilities
  694.                 (if (bitand mods_choice 64)
  695.                     ; first copy the program
  696.                     (copyfiles
  697.                         (prompt "Copying the Print Utilities to your bootfloppy")
  698.                         (help "This program lets Directory Opus v4.1 print files."
  699.                             newline
  700.                             @copyfiles-help
  701.                         )
  702.                         (source "DOpus_Master:Modules")
  703.                         (dest (tackon @default-dest "C"))
  704.                         (choices "DOpus_Print")
  705.                         (confirm)
  706.                     )
  707.                 )
  708.             
  709.             ; tell the user of our progress
  710.                 (complete 90)
  711.             
  712.             ; see if we are supposed to copy icon utilities
  713.                 (if (bitand mods_choice 128)
  714.                     ; first copy the program
  715.                     (copyfiles
  716.                         (prompt "Copying the Icon Utilities to your bootfloppy")
  717.                         (help "This program lets Directory Opus v4.1 manipulate icons."
  718.                             newline
  719.                             @copyfiles-help
  720.                         )
  721.                         (source "DOpus_Master:Modules")
  722.                         (dest (tackon @default-dest "C"))
  723.                         (choices "DOpus_Icon")
  724.                         (confirm)
  725.                     )
  726.                 )
  727.             
  728.             ; tell the user of our progress
  729.                 (complete 100)
  730.         )
  731.     )
  732.  
  733. ; unmake the assignment
  734.     (makeassign "DOpus_Master" (safe))
  735.  
  736. ; final message for our viewers
  737.     ; well either way we want to say this
  738.     (set end_text "Well thats it folks, have a fun time with Directory Opus v4.1.")
  739.     
  740.     ; did the library already exist?
  741.     (if libraryexisted
  742.         (set end_text (cat end_text newline "Since you already had the library installed you will have to reboot your system."))
  743.     )
  744.     
  745.     ; now for the real exit
  746.     (exit end_text)
  747.